<template>
    <div class="item">
      <Avatar class="avatar" shape="square" size="default" :src="data.user.avatar">
      </Avatar>
      <p class="nickname">{{data.user.nickname}}</p>
      <div class="check" v-if="data.status === '1'">
        审
      </div>
    </div>
</template>

<script>
export default {
  name: 'item',
  props: {
    data: {
      type: Object
    }
  }
}
</script>

<style scoped lang="less">
  .item{
    position: relative;
    cursor: pointer;
    float: left;
    margin: 0 10px 10px 0;
    .avatar{
      width: 60px;
      height: 60px;
    }
    .nickname{
      font-size: 12px;
      width: 60px;
      text-align: center;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .check{
      position: absolute;
      left:0;
      top:0;
      width: 60px;
      height: 60px;
      line-height: 60px;
      text-align: center;
      background: rgba(0,0,0,.3);
      color: #fff;
      font-size: 20px;
      user-select: none;
    }
  }
</style>
